#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	string s;
	cin >> s;

	int index_dot = s.find(".");
	int index_div = s.find("/");
	int index_percent = s.find("%");

	if (index_dot != -1) {
		string t1(s, 0, index_dot);
		string t2(s, index_dot + 1);
		reverse(t1.begin(), t1.end());
		reverse(t2.begin(), t2.end());

		int num = t2.size() - 1;
		for (; t2[num] == '0' && num > 0; num--);

		cout << stoll(t1) << "." << to_string(stoll(t2)).substr(0, num + 1);
	} else if (index_div != -1) {
		string t1(s, 0, index_div);
		string t2(s, index_div + 1);
		reverse(t1.begin(), t1.end());
		reverse(t2.begin(), t2.end());

		int num = t2.size() - 1;
		for (; t2[num] == '0' && num > 0; num--);

		cout << stoll(t1) << "/" << to_string(stoll(t2)).substr(0, num + 1);
	} else if (index_percent != -1) {
		string t1(s, 0, index_percent);
		reverse(t1.begin(), t1.end());
		cout << stoll(t1) << "%";
	} else {
		reverse(s.begin(), s.end());
		cout << stoll(s);
	}
	return 0;
}
